package cn.formal.service;

import cn.formal.entity.PageResult;
import cn.formal.pojo.QuestionAnswer;

import java.util.List;

public interface SearchService {

    void addDoc(QuestionAnswer questionAnswer);
    QuestionAnswer findById(Long id);
    List<QuestionAnswer> findByTitle(String title);

    void update(QuestionAnswer questionAnswer);

    void deleteById(Long id);

    PageResult findAll(Integer page, Integer size);

    void deleteAll();
}
